package com.imufe.chemicalenterprisedangerwarning.entity.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

/**
 * @author BaiBan
 * @since 2022/9/26
 */
@ApiModel("化学品请求")
@Data
public class ChemicalQuery {

    @ApiModelProperty("化学品编号")
    @Null(message = "创建时化学品编号不能填", groups = CreateGroup.class)
    @NotNull(message = "修改时化学品编号必须填", groups = UpdateGroup.class)
    private Long id;

    @ApiModelProperty("化学品名称")
    @NotNull(message = "化学品名称不能为空")
    private String name;

    @ApiModelProperty("化学品状态;0-气态; 1-液态; 2-固态;")
    private Byte status;

    @ApiModelProperty(value = "是否危险")
    private Boolean danger;

    @ApiModelProperty(value = "是否重点监管")
    private Boolean supervision;
}